package OI_test;

import java.io.File;

public class file_object {
    public static void main(String[] args) {
        /*File f1 = new File("study/src/01-切换游戏图片的业务分析.md");
        System.out.println(f1.isFile());
        System.out.println(f1.canRead());
        System.out.println(f1.canWrite());
        System.out.println(f1.canExecute());
        System.out.println(f1.length());*/
        File f2 = new File("study/src");
        File[] f2arr = f2.listFiles();
        if (f2arr != null) {
            for (File file : f2arr) {
                System.out.print(file + " ");
            }
        }

    }
}
